﻿using System;
using UniMana.Data;
using UniMana.Utils.Controls;
namespace UniMana.Win.Leadership
{
    public partial class FrmReport_Rpt : DevExpress.XtraReports.UI.XtraReport
    {
        private DBMain m_ReportTraining_CLass_StudentList = new DBMain();
        public FrmReport_Rpt(bds _bdsSource)
        {
            InitializeComponent();
            xrlNgayThang.Text = 
                "Tân An," + "ngày" + " " + DateTime.Now.Day + " " + 
                "tháng" + " " + DateTime.Now.Month + " " + 
                "năm" + " " + DateTime.Now.Year;
            this.DataSource = _bdsSource;
            xrtCatalogueTraining_Type.DataBindings.Add("Text", this.DataSource, "TongSoSV");
            xrtMaLop.DataBindings.Add("Text", this.DataSource, "MaLop");
            xrtClassName.DataBindings.Add("Text", this.DataSource, "TenLop");
            xrtSiSo.DataBindings.Add("Text", this.DataSource, "TongSoSV");
            xrtCatalogue_Department.DataBindings.Add("Text", this.DataSource, "TenKhoa");
            xrtNameCourse.DataBindings.Add("Text",this.DataSource,"TenKhoaHoc");
            xrtNameLevel.DataBindings.Add("Text", this.DataSource, "TenBacDaoTao");
           xrtHoGVCN.DataBindings.Add("Text", this.DataSource, "HoGVCN");
           xrtTenGVCN.DataBindings.Add("Text", this.DataSource, "TenGVCN");
           xrtCatalogueTraining_Type.DataBindings.Add("Text", this.DataSource, "TenLHDT");
         
           xrtHoTenGVCN.Text = xrtHoGVCN.DataBindings.Add(
               "Text", this.DataSource, "HoGVCN") 
               + " " + xrtTenGVCN.DataBindings.Add(
               "Text", this.DataSource, "TenGVCN");            
        }
    }
}
